import request from '/@/utils/request'

// 文章列表
export const articleList = (params?: any) => request.get('/cms/article/lists', params);

// 添加文章
export const articleAdd = (params?: any) => request.post('/cms/article/add', params);

// 编辑文章
export const articleEdit = (params?: any) => request.post('/cms/article/edit', params);

// 删除文章
export const articleDelete = (params?: any) => request.delete('/cms/article/delete', params);

// 文章详情
export const articleDetail = (params?: any) => request.get('/cms/article/detail', params);

// 修改文章状态
export const articleUpdateStatus = (params?: any) => request.post('/cms/article/updateStatus', params);

// 文章导出
export const articleExport = (params?: any) => request.post('/cms/article/export', params);

// 文章导入
export const articleImport = (params?: any, callback?:any) => request.post('/cms/article/import', params,{isImport:true,callback:callback});
